<?php
/*
 * 初始化数据库
 */
include CONFIG["app"]["model_path"].'/helper/DbModel.php';
function initDataBase(){
    $database = CONFIG['database'];
    $db = new DbModel(
        $database['type'],
        $database['servername'],
        $database['db_name'],
        $database['username'],
        $database['password'],
        $database['lang']
    );
    return $db;
}

